package com.gs.SynPatrolRep.view;

import com.gs.SynPatrolRep.apiresult.ApiResultData;
import com.gs.SynPatrolRep.db.dto.ShortDto;
import com.gs.SynPatrolRep.db.dto.VersionDto;

import java.io.File;
import java.util.List;
import java.util.Locale;

public interface ISettingsView extends IView {
    void onGetAreaSuccess(ApiResultData<List<ShortDto>> apiResultData);

    void onGetAreaFail(Exception e);

    void onUploadSiteSuccess(ApiResultData<String> apiResultData, String siteName, String siteId);

    void onUploadSiteFail(Exception e);

    void onUploadLanguageSuccess(ApiResultData<String> apiResultData, int languageId, Locale locale);

    void onUploadLanguageFail(Exception e);

    void onGetVersionSuccess(ApiResultData<VersionDto> apiResultData);

    void onGetVersionFails(Exception e);

    void onDownloadFileSuccess(File file);

    void onDownloadProgress(int progress);

    void onDownloadFails(Exception e);
}
